const firstColumns = [
    {
        title: "站点",
        dataIndex: "site",
        key: "site",
        align:"center",
    },
    {
        title: "币种",
        dataIndex: "currency",
        key: "currency",
        align:"center"
    },
    {
        title: "订单金额",
        dataIndex: "totalAmt",
        key: "totalAmt",
        align:"center"
    },
    {
        title: "优惠总额",
        dataIndex: "discountAmt",
        key: "discountAmt",
        align:"center"
    },
    {
        title: "总服务费",
        dataIndex: "deliveryAmt",
        key: "deliveryAmt",
        align:"center"
    },
    {
        title: "总税费",
        dataIndex: "taxAmt",
        key: "taxAmt",
        align:"center"
    },
    {
        title: "销项",
        dataIndex: "outputVat",
        key: "outputVat",
        align:"center"
    },
    {
        title: "历史退款金额",
        dataIndex: "totalRefund",
        key: "totalRefund",
        align:"center"
    },
    {
        title: "剩余可退金额",
        dataIndex: "totalRemaining",
        key: "totalRemaining",
        align:"center"
    },
]
const usColumns = [
    {
        title: '退款总金额(含税)',
        dataIndex: 'totalTaxRefund',
        key: 'totalTaxRefund',
        align: 'center'
    },
    {
        title: '退款总金额(不含税)',
        dataIndex: 'totalNoTaxRefund',
        key: 'totalNoTaxRefund',
        align: 'center'
    },
    {
        title: '退款总sku金额(不含税)',
        dataIndex: 'skuRefund',
        key: 'skuRefund',
        align: 'center'
    },
    {
        title: '退款服务费',
        dataIndex: 'serviceRefund',
        key: 'serviceRefund',
        align: 'center'
    },
    {
        title: '退款省税',
        dataIndex: 'provincialTaxRefund',
        key: 'provincialTaxRefund',
        align: 'center'
    }
]
const caColumns = [
    {
        title: '退款总金额(含税)',
        dataIndex: 'totalTaxRefund',
        key: 'totalTaxRefund',
        align: 'center'
    },
    {
        title: '退款总金额(不含税)',
        dataIndex: 'totalNoTaxRefund',
        key: 'totalNoTaxRefund',
        align: 'center'
    },
    {
        title: '退款总sku金额(不含税)',
        dataIndex: 'skuRefund',
        key: 'skuRefund',
        align: 'center'
    },
    {
        title: '退款服务费',
        dataIndex: 'serviceRefund',
        key: 'serviceRefund',
        align: 'center'
    },
    {
        title: '退款联邦税',
        dataIndex: 'federalTaxRefund',
        key: 'federalTaxRefund',
        align: 'center'
    },
    {
        title: '退款省税',
        dataIndex: 'provincialTaxRefund',
        key: 'provincialTaxRefund',
        align: 'center'
    }
]
const euColumns = [
    {
        title: '退款总金额(含税)',
        dataIndex: 'totalTaxRefund',
        key: 'totalTaxRefund',
        align: 'center'
    },
    {
        title: '退款总金额(不含税)',
        dataIndex: 'totalNoTaxRefund',
        key: 'totalNoTaxRefund',
        align: 'center'
    },
    {
        title: '退款总sku金额(不含税)',
        dataIndex: 'skuRefund',
        key: 'skuRefund',
        align: 'center'
    },
    {
        title: '退款服务费',
        dataIndex: 'serviceRefund',
        key: 'serviceRefund',
        align: 'center'
    },
    {
        title: '销项',
        dataIndex: 'outputVatRefund',
        key: 'outputVatRefund',
        align: 'center'
    }
]
const thirdColumns = [
    {
        title: "工单号",
        dataIndex: "ticketId",
        key: "ticketId",
        align:"center",
    },
    {
        title: "退款状态",
        dataIndex: "refundStatus",
        key: "refundStatus",
        align:"center",
    },
    {
        title: "原因",
        dataIndex: "reason",
        key: "reason",
        align:"center",
        width:300,
    },
    {
        title: "退款金额",
        dataIndex: "totalTaxRefund",
        key: "totalTaxRefund",
        align:"center",
    },
    {
        title: "创建时间",
        dataIndex: "createTime",
        key: "createTime",
        align:"center",
    },
]
const refundReason = [
    {
        label: '开发/采购',
        value: '开发/采购',
        children: [
            {
                label: '采购超时',
                value: '采购超时',
                children: [
                    {
                        label: '交付进度超时',
                        value: '交付进度超时',
                    },
                    {
                        label: '换货差价',
                        value: '换货差价',
                    },
                ],
            },
            {
                label: '产品',
                value: '产品',
                children: [
                    {
                        label: '产品设计不合理',
                        value: '产品设计不合理',
                    },
                ],
            },
            {
                label: '无法生产',
                value: '无法生产',
                children: [
                    {
                        label: '停产下架',
                        value: '停产下架',
                    },
                    {
                        label: '无法匹配供应商',
                        value: '无法匹配供应商',
                    },
                    {
                        label: '质检不合格',
                        value: '质检不合格',
                    },
                ],
            },
        ],
    },
    {
        label: '产品质量',
        value: '产品质量',
        children: [
            {
                label: '质检不严谨',
                value: '质检不严谨',
                children: [
                    {
                        label: '漏包/漏配件/部件',
                        value: '漏包/漏配件/部件',
                    },
                ],
            },
            {
                label: '产品质量问题',
                value: '产品质量问题',
                children: [
                    {
                        label: '总体质量不满意',
                        value: '总体质量不满意',
                    },
                    {
                        label: '尺寸错误',
                        value: '尺寸错误',
                    },
                    {
                        label: '颜色/花纹错误',
                        value: '颜色/花纹错误',
                    },
                    {
                        label: '材质/结构错误',
                        value: '材质/结构错误',
                    },
                    {
                        label: '包装错误/货不对板',
                        value: '包装错误/货不对板',
                    },
                    {
                        label: '污渍/刮花等',
                        value: '污渍/刮花等',
                    },
                ],
            },
        ],
    },
    {
        label: '系统问题',
        value: '系统问题',
        children: [
            {
                label: '系统问题',
                value: '系统问题',
                children: [
                    {
                        label: '没有收到订单邮件',
                        value: '没有收到订单邮件',
                    },
                    {
                        label: '注册后无法看到历史订单',
                        value: '注册后无法看到历史订单',
                    },
                    {
                        label: '订单信息不匹配',
                        value: '订单信息不匹配',
                    },
                    {
                        label: '订单内容显示不足',
                        value: '订单内容显示不足',
                    },
                    {
                        label: '欺诈交易',
                        value: '欺诈交易',
                    },
                    {
                        label: '重复下单（备注订单号）',
                        value: '重复下单（备注订单号）',
                    },
                ],
            },
        ],
    },
    {
        label: '客户原因',
        value: '客户原因',
        children: [
            {
                label: '客户主观原因',
                value: '客户主观原因',
                children: [
                    {
                        label: '空间/设计变化',
                        value: '空间/设计变化',
                    },
                    {
                        label: '买错（尺寸/颜色等）',
                        value: '买错（尺寸/颜色等）',
                    },
                    {
                        label: '家人原因',
                        value: '家人原因',
                    },
                    {
                        label: '价格问题',
                        value: '价格问题',
                    },
                    {
                        label: '换品差价',
                        value: '换品差价',
                    },
                    {
                        label: '其他',
                        value: '其他',
                    },
                    {
                        label: '连带取消',
                        value: '连带取消',
                    },
                    {
                        label: '不接受预设交期',
                        value: '不接受预设交期',
                    },
                    {
                        label: '客服挽单',
                        value: '客服挽单',
                    }
                ],
            },
        ],
    },
    {
        label: '破损',
        value: '破损',
        children: [
            {
                label: '破损',
                value: '破损',
                children: [
                    {
                        label: '结构/包装不合理',
                        value: '结构/包装不合理',
                    },
                ],
            },
        ],
    },
    {
        label: '营销问题',
        value: '营销问题',
        children: [
            {
                label: '交期过长',
                value: '交期过长',
                children: [
                    {
                        label: '前台产品交期过长',
                        value: '前台产品交期过长',
                    },
                ],
            },
            {
                label: '信息不准确',
                value: '信息不准确',
                children: [
                    {
                        label: '产品信息不明',
                        value: '产品信息不明',
                    },
                    {
                        label: '产品描述不符',
                        value: '产品描述不符',
                    },
                    {
                        label: '价格出错',
                        value: '价格出错',
                    },
                    {
                        label: '前台产品交期不正确',
                        value: '前台产品交期不正确',
                    },
                ],
            },
            {
                label: '众筹活动',
                value: '众筹活动',
                children: [
                    {
                        label: '众筹活动',
                        value: '众筹活动',
                    },
                ],
            },
            {
                label: '价保',
                value: '价保',
                children: [
                    {
                        label: '未使用优惠',
                        value: '未使用优惠',
                    },
                    {
                        label: '价格变动',
                        value: '价格变动',
                    },
                ],
            },
            {
                label: '会员退费',
                value: '会员退费',
                children: [
                    {
                        label: '会员退费',
                        value: '会员退费',
                    },
                ],
            },
        ],
    },
    {
        label: '客服服务',
        value: '客服服务',
        children: [
            {
                label: '客服服务不当',
                value: '客服服务不当',
                children: [
                    {
                        label: '服务不及时',
                        value: '服务不及时',
                    },
                    {
                        label: '服务不专业',
                        value: '服务不专业',
                    },
                    {
                        label: '服务不完整',
                        value: '服务不完整',
                    },
                    {
                        label: '承诺没做到',
                        value: '承诺没做到',
                    },
                ],
            },
            {
                label: '口碑维护问题',
                value: '口碑维护问题',
                children: [
                    {
                        label: '品牌差评',
                        value: '品牌差评',
                    },
                ],
            },
        ],
    },
    {
        label: '物流问题',
        value: '物流问题',
        children: [
            {
                label: '物流服务',
                value: '物流服务',
                children: [
                    {
                        label: '头程运输超时',
                        value: '头程运输超时',
                    },
                    {
                        label: '尾程卡派超时',
                        value: '尾程卡派超时',
                    },
                    {
                        label: '尾程快递超时',
                        value: '尾程快递超时',
                    },
                    {
                        label: '物流派错',
                        value: '物流派错',
                    },
                    {
                        label: '物流丢件/漏发',
                        value: '物流丢件/漏发',
                    },
                    {
                        label: '仓库发错货',
                        value: '仓库发错货',
                    },
                    {
                        label: '暴力运输破损',
                        value: '暴力运输破损',
                    },
                    {
                        label: '白手套没提供',
                        value: '白手套没提供',
                    },
                    {
                        label: '尾程服务差',
                        value: '尾程服务差',
                    },
                    {
                        label: '版本混发',
                        value: '版本混发',
                    },
                    {
                        label: '叉车叉坏',
                        value: '叉车叉坏',
                    },
                ],
            },
        ],
    },
]
const zendeskRules = {
    platform:[
        { required: true, message: '请选择退款平台', trigger: 'blur' }
    ],
    email:[
        { required: true, message: '请填写客户邮箱', trigger: 'blur' }
    ],
    type:[
        { required: true, message: '请选择退款类型', trigger: 'blur' }
    ],
    reason:[
        { required: true, message: '请选择退款原因', trigger: 'blur' }
    ],
    refundStatus:[
        { required: true, message: '请选择退款情况', trigger: 'blur' }
    ],
    deliveryStatus:[
        { required: true, message: '请选择妥投情况', trigger: 'blur' }
    ],
    memo:[
        { required: true, message: '请填写退款描述', trigger: 'blur' }
    ],
}
const rules = {
    orderId:[
        { required: true, message: '请填写订单编号', trigger: 'blur' }
    ],
}
export {
    firstColumns,
    usColumns,
    caColumns,
    euColumns,
    thirdColumns,
    refundReason,
    zendeskRules,
    rules
}
